
/**
 *
 * @author a100101
 */
public class LoanRequestHandler {

    private int balance;
    private int period;

    public LoanRequestHandler(int balance, int period) {
        this.balance = balance;
        this.period = period;
    }

    public void approveLoan(LoanValidator validator) {
        if(validator.isValid(balance))
            System.out.println("Loan approved...");
        else
            System.out.println("Sorry not enough balance...");
    }

}
